
// Copyright (c) 2002 HTHK
package admin.menu;

import com.ffpc.sql.*;

import java.sql.*;
import java.util.Vector;
/**
 * A Class class.
 * <P>
 * @author HTHK
 */
public class UserFunctionViewProcess
{
    public static UserFunctionViewBean createBean()
    {
        return new UserFunctionView();
    }

    public static UserFunctionViewBean[] find(Connection con, UserFunctionViewBean userFunctionViewBean)
      throws DataException
    {
        UserFunctionView userFunctionView = (UserFunctionView)userFunctionViewBean;
        BaseSqlCommand buc = new BaseSqlCommand(con);
        Vector rows = buc.find(userFunctionView);
        UserFunctionViewBean[] beans = new UserFunctionView[rows.size()];
        for (int i=0;i<rows.size();i++)
        {
            UserFunctionView bean = new UserFunctionView();
            bean.setColumns((Column[])rows.get(i));
            beans[i] = bean;
        }
        return beans;
    }
}

 